<?php
/**
 * @var $schoolDetail
 * @var $jobsCate
 */
?>
<div class="schoolContentDetail mainWith">
    <div class="breadCrumb">
        当前位置：<a href="/">首页</a> > <a href="/school">找学校</a> > <a href="javascript:void(0)"><?php echo $schoolDetail->first()->title?></a>
    </div>
    <div class="schoolContentInfo">
        <div class="schoolName">
            <?php echo $schoolDetail->first()->title?>
        </div>
        <div class="schoolMainInfo">
            <ul class="clearFix">
                <li class="<?php echo isset($schoolDetail->first()->type)?$schoolDetail->first()->type:'暂无数据'?>"><span><img
                                src="/img/city.png" alt="企业性质"></span>企业性质：<?php echo isset($schoolDetail->first()->type)?$schoolDetail->first()->type:'暂无数据'?></li>
                <li class="<?php echo isset($schoolDetail->first()->register_money)?$schoolDetail->first()->register_money:'暂无数据'?>"><span><img
                                src="/img/money.png" alt="注册资金"></span>注册资金：<?php echo isset($schoolDetail->first()->register_money)?$schoolDetail->first()->register_money:'暂无数据'?></li>
                <li class="<?php echo isset($schoolDetail->first()->employee_num)?$schoolDetail->first()->employee_num:'暂无数据'?>"><span><img
                                src="/img/person.png" alt="员工数"></span>员工数：<?php echo isset($schoolDetail->first()->employee_num)?$schoolDetail->first()->employee_num:'暂无数据'?></li>
                <li class="<?php echo isset($schoolDetail->first()->location)?$schoolDetail->first()->location:'暂无数据'?>"><span><img
                                src="/img/location.png" alt="所在地"></span>所在地：<?php echo isset($schoolDetail->first()->location)?$schoolDetail->first()->location:'暂无数据'?></li>
                <li title="<?php echo isset($schoolDetail->first()->address)?$schoolDetail->first()->address:'暂无数据'?>"><span><img
                                src="/img/position.png" alt="地址"></span>地址：<?php echo isset($schoolDetail->first()->address)?$schoolDetail->first()->address:'暂无数据'?></li>
                <li title="<?php echo isset($schoolDetail->first()->official_website)?$schoolDetail->first()->official_website:'暂无数据'?>"><span><img
                                src="/img/website.png" alt="官网"></span>官网：<?php echo isset($schoolDetail->first()->official_website)?$schoolDetail->first()->official_website:'暂无数据'?></li>
            </ul>
        </div>
        <hr>
        <div class="schoolInfoIntro">
            <div class="schoolInfoIntroLabel">
                公司介绍
            </div>
            <div class="schoolInfoIntroContent">
                <?php echo $schoolDetail->first()->intro?>
            </div>
        </div>
        <hr>
        <div class="schoolJobs">
            <div class="schoolInfoIntroLabel">
                招聘职位 <span class="isInvite">（<span class="specColor"><?php echo count($schoolDetail->first()->jobs)?></span> 个正在招聘）</span>
            </div>
            <div class="schoolJobsWrap">
                <?php if (count($schoolDetail->first()->jobs)>0){
                    ?>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>职位</th>
                                <th>薪水</th>
                                <th>学历</th>
                                <th>地区</th>
                                <th>发布时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($schoolDetail->first()->jobs as $item){
                                ?>
                                <tr>
                                    <td><a href="/jobs/<?php echo $jobsCate[$item->id]->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>"><?php echo $item->name?></a></td>
                                    <td><?php echo $item->salary?></td>
                                    <td><?php echo $item->education?></td>
                                    <td><?php echo $schoolDetail->first()->location?></td>
                                    <td><?php echo explode(' ',$item->publish_date)[0]?></td>
                                </tr>
                                <?php
                            }?>
                        </tbody>
                    </table>
                <?php
                } else {
                    ?>
                    <p style="padding:0 28px 15px;margin: 0;">暂无岗位招聘</p>
                <?php
                }?>
            </div>
        </div>
    </div>
</div>